package com.cgmnx.admin.dao.mapper;


import com.cgmnx.admin.common.bean.Limiter;
import com.cgmnx.admin.dao.condition.ReplyCondition;
import com.cgmnx.admin.dao.entity.ReplyEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 点评
 */
@Repository
public interface ReplyMapper {

    void save(ReplyEntity entity);

    List<ReplyEntity> queryPage(@Param("condition") ReplyCondition condition,@Param("limiter")Limiter limiter);

    int count(ReplyCondition condition);

    void update(ReplyEntity entity);

    ReplyEntity queryById(@Param("id") Integer id);

    void updateAudit(@Param("id") Integer id, @Param("newStatus") Integer newStatus, @Param("oldStatus") Integer oldStatus);

}